package com.miukoo.aikao.qexam.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
* <p>
* 考试题库实体类
* </p>
*
* @author 聪明笨狗
* @since 2020-09-05 11:14
*/
@Setter
@Getter
@TableName("el_exam_repo")
public class ExamRepo extends BaseModel<ExamRepo> {

    private static final long serialVersionUID = 1L;
    
    /**
    * ID
    */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    
    /**
    * 考试ID
    */
    @TableField("exam_id")
    private Long examId;
    
    /**
    * 题库ID
    */
    @TableField("repo_id")
    private Long repoId;
    
    /**
    * 单选题数量
    */
    @TableField("radio_count")
    private Integer radioCount;
    
    /**
    * 单选题分数
    */
    @TableField("radio_score")
    private Integer radioScore;
    
    /**
    * 多选题数量
    */
    @TableField("multi_count")
    private Integer multiCount;
    
    /**
    * 多选题分数
    */
    @TableField("multi_score")
    private Integer multiScore;
    
    /**
    * 判断题数量
    */
    @TableField("judge_count")
    private Integer judgeCount;
    
    /**
    * 判断题分数
    */
    @TableField("judge_score")
    private Integer judgeScore;

    /**
     * 判断题分数
     */
    @TableField("qa_count")
    private Short qaCount;

    /**
     * 判断题分数
     */
    @TableField("qa_score")
    private Short qaScore;

    /**
     * 判断题分数
     */
    @TableField("coding_count")
    private Short codingCount;

    /**
     * 判断题分数
     */
    @TableField("coding_score")
    private Short codingScore;

    /**
     * 判断题分数
     */
    @TableField("radio_max_option")
    private Short radioMaxOption;

    /**
     * 判断题分数
     */
    @TableField("multi_max_option")
    private Short multiMaxOption;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
